using System.Collections;
using System.Collections.Generic;
using System.Linq;
using M0;
using UnityEngine;

namespace M1
{
    public class Model管理器 : BaseSingleMono<Model管理器>
    {
        [SerializeField]private List<BaseModel> all数据s;

        public M GetModel<M>() where M : BaseModel
        {
            var m = all数据s.FirstOrDefault(f => f is M);
            return (M)m;
        }

#if UNITY_EDITOR
        public List<BaseModel> All数据s=>all数据s;
#endif
    }

}

